<!--老师端已审核月报详情-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../script/mui.min.js"></script>
		<link href="../../css/weui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<!--<link rel="stylesheet" href="../../css/CFNetPP_Base.css">-->
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/attachmentCss.css">
		<script type="text/javascript" src="../../script/echarts.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;top: 20px;">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="page">月报</span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
	</body>
	<div class="base_content_div">
		<div class="bgwhite padding10">
			<div id="segmentedControl" class="mui-segmented-control">
				<a class="mui-control-item mui-active" href="#item1"> 学生自评 </a>
				<a class="mui-control-item" href="#item3"> 企业评分 </a>
				<a class="mui-control-item" href="#item2"> 老师评分 </a>
			</div>
		</div>
		<div id="item1" class="mui-control-content mui-active top_10 bottom_30">
			<ul class="mui-table-view writeReport">
				<li class="mui-table-view-cell base_dark_grey" id="timediv_one" style="display: none">
					<div class="cell_left_img_div">
						<img class="cell_img" src="../../image/icon_clock.png" alt="">
					</div>
					<span class="time_span base_title_font" > 应交日期:</span>
					<span class="time_span base_title_font" id="nomal_time"> </span>
				</li>
				<li class="mui-table-view-cell base_dark_grey" id="timediv_two">
					<div class="cell_left_img_div">
						<img class="cell_img" src="../../image/icon_clock.png" alt="">
					</div>
					<span class="time_span base_title_font" > 提交日期:</span>
					<span class="time_span base_title_font" id="now_time"> </span>
				</li>
			</ul>
			<div class="feeling top_10">
				<p class="title">
					月工作总结
				</p>
				<div class="feeling-text" id="">
					<p id="summary" style=" word-break: break-all">
						<!--四大美女四大金刚的感觉金黄色的个结婚吗三等功三毒黄瓜斌和慕斯蛋糕设计的大概是谁没打过啥都没干后没你事海水倒灌金黄色的个吧们。三等功金黄色的个吧内部石膏板南京蛤蟆上个班是几十个喜欢订的高科技四大金刚后第三款估计明年。-->
					</p>
				</div>
			</div>
			<div class="text_feel top_10 " hidden="hidden"  id="attachment_div">
				<div style="padding: 10px 20px;">
					<p class="title "style="margin-bottom:0;">
						附件
					</p>
					<div class="feeling-text top_5 left_15" hidden="hidden" id="nullImg">
						<p>
							无
						</p>
					</div>
				</div>
				<div id="attachmentTableView" class="weui_cells fileDownLoad_Div"></div>
			</div>
			<div class="myScore" id="dgsxm" hidden="hidden">
				<p class="title">
					给企业师傅的评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						工作技能指导：
					</div>
					<div class="star left" id="taiduNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						业务能力：
					</div>
					<div class="star left" id="chuqinNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						心理辅导：
					</div>
					<div class="star left" id="workendNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						职业素养培养：
					</div>
					<div class="star left" id="jinengNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
		</div>
		<div id="item2" class="mui-control-content top_10 bottom_30">
			<div class="feeling">
				<p class="title">
					老师评语
				</p>
				<div class="feeling-text">
					<p id="lscomment" class="sy"></p>
				</div>
			</div>
			<div class="myScore"  id="ggsxls" hidden="hidden">
				<p class="title">
					老师评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						学习能力：
					</div>
					<div class="star left" id="taiduNum12">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作能力：
					</div>
					<div class="star left" id="chuqinNum12">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作态度：
					</div>
					<div class="star left" id="workendNum12">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						职业素养：
					</div>
					<div class="star left" id="jinengNum12">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
			<div class="myScore" id="dgsxls" hidden="hidden">
				<p class="title">
					老师评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						工作表现：
					</div>
					<div class="star left" id="taiduNum1">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						学习能力：
					</div>
					<div class="star left" id="chuqinNum1">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作态度：
					</div>
					<div class="star left" id="workendNum1">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						安全意识：
					</div>
					<div class="star left" id="jinengNum1">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
		</div>
		<div id="item3" class="mui-control-content top_10 bottom_30">
			<div class="feeling">
				<p class="title">
					企业师傅评语
				</p>
				<div class="feeling-text">
					<p id="qycomment" class="sy"></p>
				</div>
			</div>
			<!-- 跟岗实习-->
			<div class="myScore"  id="ggsxqy" hidden="hidden">
				<p class="title">
					企业评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						工作能力：
					</div>
					<div class="star left" id="taiduNum22">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作态度：
					</div>
					<div class="star left" id="chuqinNum22">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						职业素养：
					</div>
					<div class="star left" id="workendNum22">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						沟通能力：
					</div>
					<div class="star left" id="jinengNum22">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
			<!-- 顶岗实习-->
			<div class="myScore"  id="dgsxqy" hidden="hidden">
				<p class="title">
					企业评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						工作业绩：
					</div>
					<div class="star left" id="taiduNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作能力：
					</div>
					<div class="star left" id="chuqinNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作态度：
					</div>
					<div class="star left" id="workendNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						职业素养：
					</div>
					<div class="star left" id="jinengNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
		</div>
	</div>
	</body> <script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/databaseOperation.js"></script>
	<script src="../../script/attachmentManager.js"></script>
		<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		var dataArr = new Array();
		var Weightratio = new Array();
		var page = 1;
		var row = 10;
		var monthid = '';
		//未审核
		DBReady = function() {
			SendBehaviorTrajectoriesNotifi1('0', '老师端月报列表详情', '108', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			var pageParam = api.pageParam;
			monthid = pageParam.monthid;
			var sxtypes = pageParam.sxtypes;
			//			alert(sxtypes);
			//0：顶岗，1：认知，2:跟岗
			if (sxtypes == 0) {
				$('#dgsxqy').show();
				$('#dgsxm').show();
				$('#dgsxls').show();
				//跟岗实习
			} else if (sxtypes == 2) {
				$('#ggsxqy').show();
				$('#ggsxls').show();
			} else {
			}
			setupDownloadAttNotifi();
			loadMonthData(monthid);
			blockAddCopyClickWithIdArr(["summary","lscomment","qycomment"]);
		};
		function loadMonthData(monthid) {
			var param = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjid'),
				ybid : monthid //未审核状态的周报列表
			};
			cfnetppPOST(urlLsydetails, param, true, function(data, status) {
				//				alert('获取数据' + JSON.stringify(data));
//				popu(param)
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						if (list != null) {
							if (isSameMonth(api.pageParam.monthtime, list.time) == true) {
								$('#now_time').text(getLocalTime(api.pageParam.monthtime));
								$('#timediv_one').hide();
							} else {
								$('#timediv_one').show();
								$('#now_time').text(getLocalTime(list.time));
								$('#nomal_time').text(getLocalTime(api.pageParam.monthtime));
							}
							//企业数组
							var qyArr = list.qypf;
							//学生数组
							var xsArr = list.xszp;
							//老师数组
							var lsArr = list.lspj;
							//学生比重
							var summary = xsArr.summary;
							//							var experience = xsArr.experience;
							var urldata = xsArr.urldata;
							if (urldata != null && urldata != '') {
								$('#attachment_div').show();
							}
							var arr = new Array();
							for (var i = 0; i < urldata.length; i++) {
								var monthData = urldata[i];
								var data = {
									id : monthData.id,
									url : monthData.enclosureurl,
									size : monthData.enclosuresize,
									name : monthData.enclosurename,
								};
								arr.push(data);
							}
							saveAttDatasToDb(arr, '');
							//							$('#experience').text(experience);
							$('#page').text(xsArr.rename1.rename1 + "的月报");
							$('#summary').text(Base64.decode(summary));
							var sxtd = parseInt(xsArr.sxtd) / 5;
							//实习态度(0~10分)
							var cql = parseInt(xsArr.cql) / 5;
							//出勤率
							var gzwcd = parseInt(xsArr.gzwcd) / 5;
							//工作完成度
							var jnzwd = parseInt(xsArr.jnzwd) / 5;
							//技能掌握度
							//老师评语
							var comments = lsArr.comments;
							if (comments == '' || comments == null) {
								$('#lscomment').text('无老师评语');
							} else {
								$('#lscomment').text(Base64.decode(comments));
							}
							var tsxtd = parseInt(lsArr.tsxtd) / 5;
							//实习态度(0~10分)
							var tcql = parseInt(lsArr.tcql) / 5;
							//出勤率
							var tgzwcd = parseInt(lsArr.tgzwcd) / 5;
							//工作完成度
							var tjnzwd = parseInt(lsArr.tjnzwd) / 5;
							//技能掌握度
							var qcomment = qyArr.qcomment;
							//							alert(qcomment);
							if (qcomment == null) {
								$('#qycomment').text('暂无企业评价，请耐心等待');
							} else {
								$('#qycomment').text(Base64.decode(qcomment));
							}
							//企业评语
							var qsxtd = parseInt(qyArr.qsxtd) / 5;
							//实习态度(0~10分)
							var qcql = parseInt(qyArr.qcql) / 5;
							//出勤率
							var qjnzwd = parseInt(qyArr.qjnzwd) / 5;
							//工作完成度
							var qgzwcd = parseInt(qyArr.qgzwcd) / 5;
							$("#taiduNum img").eq(sxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum img").eq(cql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum img").eq(gzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum img").eq(jnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//老师评分（顶岗）
							$("#taiduNum1 img").eq(tsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum1 img").eq(tcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum1 img").eq(tgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum1 img").eq(tjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//老师评分(跟岗)
							$("#taiduNum12 img").eq(tsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum12 img").eq(tcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum12 img").eq(tgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum12 img").eq(tjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//企业评分(跟岗)
							$("#taiduNum22 img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum22 img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum22 img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum22 img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
							//企业评分（顶岗）
							$("#taiduNum2 img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#chuqinNum2 img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#workendNum2 img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
							$("#jinengNum2 img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
						} else {
							//		                 $('#noData').show();
							api.toast({
								msg : '数据为空',
								duration : 2000,
								location : 'bottom'
							});
						}
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					//				$('#noNet').show();
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		function backClick() {
			SendBehaviorTrajectoriesNotifi1('1', '老师端月报列表详情', '108', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			api.closeWin();
		}
	</script>
</html>